package com.zhang.designmode.wangzheng_design_mode.T18;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @Author: zhangxuzhuang
 * @DateTime: 2021/12/21 23:05
 * @Description: TODO
 */
public class Test {
    public static void main(String[] args) {
        RedisConfig redisConfig = new RedisConfig();
        KafkaConfig kafkaConfig = new KafkaConfig();
        MysqlConfig mysqlConfig = new MysqlConfig();
        ScheduledUpdate redisUpdate = new ScheduledUpdate(redisConfig, 3L);
        ScheduledUpdate kafkaUpdate = new ScheduledUpdate(kafkaConfig, 3L);
        redisUpdate.run();
        kafkaUpdate.run();


        //////mysqlconfig 的监控实现省略
    }
}
